﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/MasterPage.master" CodeFile="update.aspx.cs" Inherits="admin_articles_update" ValidateRequest="false" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1 class="admin-position">当前位置 -> 企业新闻管理 -> 新闻列表</h1>
<table cellpadding="0" cellspacing="0" class="admin-tab-table">
    <tr>
        <th>
            <ul style="margin-left:30px;">
                <li class="btn"><a href="list.aspx">全部新闻</a></li>
                <li class="btn_selected"><a href="update.aspx"  class="selected">编辑新闻</a></li>
            </ul>
        </th>
        <th style="text-align:right;">
            <ul class="news_search">
                <li>标题</li>
                <li><input type="text" name="search" /></li>
                <li><input type="submit" value="搜索" /></li>
            </ul>
        </th>
    </tr>
</table>
<script type="text/javascript" src="../../plugins/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="../../plugins/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
    CKEDITOR.replace('ta_ckeditor');
    function datepick(){
		WdatePicker({skin:'blueFresh',dateFmt:'yyyy-MM-dd'});
	}
</script>
<form name="form1" method="post" action="doupdate.aspx" runat="server">
<table cellpadding="0" cellspacing="0" class="admin-post-table">
    <tr>
        <th>标题</th><td><input name="subject" type="text" style="width:300px;" value="<%=detail.Rows[0]["subject"] %>" /></td>
    </tr>
    <tr>
        <th>日期</th><td><input name="eventdate" type="text" onclick='datepick();' value="<%=detail.Rows[0]["eventdate"] %>" /></td>
    </tr>
    <tr>
        <th>标签</th><td><input name="tags" type="text" value="<%=detail.Rows[0]["tags"].ToString().Trim() %>" /></td>
    </tr>
    <tr>
        <th>图片</th><td><asp:FileUpload ID="file" runat="server" /></td>
    </tr>
    <tr>        
        <th>内容</th><td><textarea id="ta_ckeditor" class="ckeditor" name="content" cols="20" rows="2" style="overflow:auto"><%=detail.Rows[0]["text"].ToString().Trim() %></textarea></td>
    </tr>
    <tr>
        <th>外链</th><td><input name="foreign_url" type="text" style="width:300px;" value="<%=detail.Rows[0]["foreign_url"].ToString().Trim() %>"  /></td>
    </tr>
    <tr>
        <th style="height:30px;">置顶</th><td><input type="radio" name="settop" value="0" <%if(detail.Rows[0]["settop"].ToString().Trim()=="0"){ %> checked="checked"<%} %> /> 不置顶 <input type="radio" name="settop" <%if(detail.Rows[0]["settop"].ToString().Trim()=="1"){ %> checked="checked"<%} %> value="1"/> 置顶</td>
    </tr>
    <tr>
        <th>作者</th><td><input name="author" type="text" style="width:100px;" /></td>
    </tr>
</table>


<input type="submit" value="提交" /><input type="hidden" name="id" value="<%=detail.Rows[0]["id"].ToString().Trim() %>" />
</form>
</asp:Content>